﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Flight Status
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Flight Status</h1>
    <table>
     <tr>
        <td>
            Departing from <input type="radio" name="DepartArrive" value="DepartFlightStatus"/> 
        </td>
        <td>
            Arriving in <input type="radio" name="DepartArrive" value="ArrivalFlightStatus"/> 
        </td>
   </table>

   <script type="text/javascript">
       $(function () {
           $(':radio[name="DepartArrive"]').change(function () {
               location.href = "/Flight/" + this.value;
           });
       });
</script>

</asp:Content>
